using UnityEngine;
using System.Collections;

public class UndoFilter : MonoBehaviour {
	
	public Material normalMat;
	public Material undoMat;
	
	void Update () {
		if(THistory.Instance.isUndoing()){
			renderer.enabled = true;
			transform.parent.renderer.material = undoMat;
		}else{
			renderer.enabled = false;
			transform.parent.renderer.material = normalMat;
		}
	}
}
